


<template>
    <div class="model-form">
        <el-page-header @back="goBack" content="增加新闻分类">
        </el-page-header>
        <div class="model-content">
            <el-form ref="ruleForm" :rules="rules" :model="form" label-width="160px">
                <el-row :gutter="10">

                    <el-col :span="22">
                        <el-form-item>
                            <el-button @click="goBack">取消</el-button>
                            <el-button type="primary" @click="createData">确定</el-button>
                        </el-form-item>
                    </el-col>
                </el-row>
            </el-form>
        </div>
    </div>
</template>

<script setup>
    import {ref} from "vue";
    import {useData} from "@/utils/useData";
    import {useCreate} from "@/uses/useCreate";

    const form = ref({
    })

    const rules = ref({
    })

    const ruleForm = ref(null);

    const {createData,goBack} =useCreate("newsCatalog",form,ruleForm)

</script>

<style scoped>
</style>